package com.zysstudy.service.impl;

import com.zysstudy.domain.User;
import com.zysstudy.domain.UserRepository;
import com.zysstudy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhaoyoushui
 * @date 2023/8/22 19:56
 */
@Service
public class UserServicelmpl implements UserService {

    @Autowired
    UserRepository userRepository;
    @Override
    public List<User> findAll() {
        return userRepository.findAll();
    }

}
